<div class="bjui-pageHeader">
    <form id="pagerForm" data-toggle="ajaxsearch"
          action="${request.getContextPath()}/OutsourcedProcessing/outsourcedProcessing" method="post">
        <div class="bjui-searchBar">
            <g:hiddenField name="SYS_QUERY_NAME" value="outsourcedProcessing"/>
            <g:hiddenField name="TABLE_NAME1" value="${startDocId}"/>
            <g:hiddenField name="TABLE_NAME2" value="${endDocId}"/>
            <g:hiddenField name="EXPORT_CONTENT_NAME" value="Excel"/>
            <label>订单号：</label>
            <input type="text" name="startDocId" size="16" placeholder="FROM" value="${startDocId}"/>
            <input type="text" name="endDocId" size="16" placeholder="TO" value="${endDocId}"/>&nbsp;
            <label>状态：</label>
            <input type="text" name="ZT" value="${ZT}" size="16" placeholder="状态"/>&nbsp;
            <label>物料编码：</label>
            <input type="text" name="partName" value="${partName}" size="16" placeholder="物料编码"/>&nbsp;
            <label>规格型号：</label>
            <input type="text" name="spec1" value="${spec1}" size="16" placeholder="规格型号"/>
            <br/><br/>
            <label>委外申请人：</label>
            <input type="text" name="wwOper" value="${wwOper}" size="16" placeholder="委外申请人"/>&nbsp;
            <label>委外工序：</label>
            <input type="text" name="wwStep" value="${wwStep}" size="25" placeholder="委外工序"/>&nbsp;
            <label>时间<strong><span class="text-danger">*</span></strong>：</label>
            <input type="text" name="startTime" readonly value="${startTime}" data-rule="required" data-pattern="yyyy-MM-dd" data-toggle="datepicker"
                   placeholder="FROM" size="12">
            <input type="text" name="endTime" readonly value="${endTime}" data-rule="required" data-pattern="yyyy-MM-dd" data-toggle="datepicker"
                   placeholder="TO" size="12">&nbsp;
            <button type="submit" class="btn-default" data-icon="search">查询</button>&nbsp;
            %{--<button type="button" class="btn-blue"--}%
                    %{--onclick="javascript:bjuiExportExl('#pagerForm', '${request.getContextPath()}/ProcessState/exportExcel')"--}%
                    %{--data-icon="file-excel-o" title="导出Excel">导出</button>--}%
            <a type="button" class="btn btn-blue" href="${request.getContextPath()}/Base/exportExcel"
               data-toggle="doexport" data-confirm-msg="确定要导出吗？" data-icon="file-excel-o" title="导出Excel">导出</a>
        </div>
    </form>
</div>

<div class="bjui-pageContent tableContent">
    <g:if test="${outsourcedProcessing.size() > 0}">
        <table data-toggle="tablefixed" data-width="200%" data-nowrap="true">
            <thead>
            <tr id="t1">
                <g:each in="${tableHeadList}" status="j" var="headInstance">
                    <g:if test="${headInstance != 'RN'}">
                        <th><g:message code="${headInstance}" default="${headInstance}"/></th>
                    </g:if>
                </g:each>
            </tr>
            </thead>
            <tbody>
            <g:if test="${outsourcedProcessing.size() > 0}">
                <g:each in="${outsourcedProcessing}" status="i" var="dataInstance">
                    <tr>
                        <g:each in="${tableHeadList}" status="j" var="headInstance">
                            <g:if test="${headInstance != 'RN'}">
                                <td>${dataInstance["${headInstance}"]}</td>
                            </g:if>
                        </g:each>
                    </tr>
                </g:each>
            </g:if>
            </tbody>
        </table>
    </g:if>
    <g:else>
        <g:render template="../template/emptyPanel"/>
    </g:else>
</div>
<g:render template="../template/pagination"/>